package com.eet.redis.controller;

import com.eet.redis.config.RedisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * Redis启动器控制类
 *
 * @author zheng.zhang
 */

@RestController
public class RedisController {

    /**
     * 注入自定义启动器
     */
    @Autowired
    private RedisService redisService;

    @GetMapping("test/{name}")
    public String test(@PathVariable("name") String name) {
        return redisService.sayHello(name);
    }
}
